package com.songcha.library_common.helper

import android.view.View

class ViewHelper {
    companion object{
        @JvmStatic
        fun setVisibility(visible:Boolean,vararg views: View?){
            for(view in views){
                if(view==null) continue
                if(visible){
                    view.visibility = View.VISIBLE
                }else{
                    view.visibility = View.GONE
                }
            }
        }

        @JvmStatic
        fun setVisibilityInvisible(visible:Boolean,view: View?){
            if(view==null) return
            if(visible){
                view.visibility = View.VISIBLE
            }else{
                view.visibility = View.INVISIBLE
            }
        }
    }
}